import type { RouteRecordRaw } from 'vue-router';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    name: 'Mes/Print',
    path: 'mes/print',
    redirect: 'noRedirect',
    meta: {
      title: $t('mes.print.title'),
      icon: 'ic:baseline-view-in-ar',
      noCache: false
    },
    children: [
      {
        name: 'Printerconfig',
        path: 'printerconfig',
        component: () => import('#/views/mes/print/printerconfig/index.vue'),
        meta: {
          title: $t('mes.print.children.Printerconfig.title'),
          icon: 'system'
        }
      },
      {
        name: 'Printtemplate',
        path: 'printtemplate',
        component: () => import('#/views/mes/print/printtemplate/list.vue'),
        meta: {
          title: $t('mes.print.children.Printtemplate.title'),
          icon: 'documentation'
        }
      }
    ]
  }
];

export default routes;
